package com.heima.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class User {
    @Value("${bean1.name}")
    private String name;
    @Value("${bean1.sex}")
    private String sex;
    @Value("${address[0]}")
    private String address;

}
